package com.wenwei.bean;

import java.io.Serializable;

/**
 * Created by nidalee on 2017/9/25.
 */

public class UserCouponBean implements Serializable{


    /**
     * id : 3
     * userId : 1
     * couponId : 7
     * state : 0
     * coupon : {"id":7,"couponName":"送到双","discount":9.5,"endTime":1506700800000,"activeTime":1505577600000,"fullPrice":60,"status":1,"type":1,"isUserHave":null}
     */

    private int id;
    private int userId;
    private int couponId;
    private int state;
    private CouponBean coupon;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getCouponId() {
        return couponId;
    }

    public void setCouponId(int couponId) {
        this.couponId = couponId;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public CouponBean getCoupon() {
        return coupon;
    }

    public void setCoupon(CouponBean coupon) {
        this.coupon = coupon;
    }

    public static class CouponBean implements Serializable{
        /**
         * id : 7
         * couponName : 送到双
         * discount : 9.5
         * endTime : 1506700800000
         * activeTime : 1505577600000
         * fullPrice : 60
         * status : 1
         * type : 1
         * isUserHave : null
         */

        private int id;
        private String couponName;
        private double discount;
        private long endTime;
        private long activeTime;
        private int fullPrice;
        private int status;
        private int type;
        private Object isUserHave;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getCouponName() {
            return couponName;
        }

        public void setCouponName(String couponName) {
            this.couponName = couponName;
        }

        public double getDiscount() {
            return discount;
        }

        public void setDiscount(double discount) {
            this.discount = discount;
        }

        public long getEndTime() {
            return endTime;
        }

        public void setEndTime(long endTime) {
            this.endTime = endTime;
        }

        public long getActiveTime() {
            return activeTime;
        }

        public void setActiveTime(long activeTime) {
            this.activeTime = activeTime;
        }

        public int getFullPrice() {
            return fullPrice;
        }

        public void setFullPrice(int fullPrice) {
            this.fullPrice = fullPrice;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public Object getIsUserHave() {
            return isUserHave;
        }

        public void setIsUserHave(Object isUserHave) {
            this.isUserHave = isUserHave;
        }
    }
}
